package com.erp.service.impl;

import com.erp.entity.Transshipment;
import com.erp.entity.vo.TransshipmentVO;
import com.erp.mapper.TransshipmentMapper;
import com.erp.service.TransshipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
@Service
public class TransshipmentServiceImpl implements TransshipmentService {

    @Autowired
    private TransshipmentMapper transshipmentMapper;
    

    @Override
    public List<TransshipmentVO> getAll() {
        return transshipmentMapper.getAll();
    }

    @Override
    public int add(Transshipment transshipment) {
        return transshipmentMapper.add(transshipment);
    }

    @Override
    public int delete(Integer id) {
        return transshipmentMapper.delete(id);
    }

    @Override
    public int update(Transshipment transshipment) {
        return transshipmentMapper.update(transshipment);
    }
}
